package org.shop.dao;

import java.util.List;
import java.util.Map;

import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.ShoppingTrolley;

public interface ShoppingTrolleyMapper extends BaseDaoMapper<ShoppingTrolley, Long>{
	/**
	 * 获取我的购物车列表
	 * @return
	 */
	public List<Map<String,Object>> getShoppingCardList(Map<String, Object> params);
	
	/**
	 * 根据商品ID获取我的购物车商品信息
	 * @param goodsId
	 * @return
	 */
	public ShoppingTrolley getShoppingCardGoods(Map<String, Object> params);
	
	/**
	 * 根据商品ID更新我的购物车商品信息
	 * @param goodsId
	 * @return
	 */
	public int updateShoppingCardGoods(Map<String, Object> params);
	
	/**
	 * 根据商品ID删除我的购物车商品
	 * @param goodsId
	 * @return
	 */
	public int delShoppingCardGoods(Map<String, Object> params);
	
	/**
	 * 获取我的购物车所有的店铺
	 * @return
	 */
	public List<Map<String,Object>> getMerchantList(Map<String, Object> params);
	
	/**
	 * 查看个人的购物车数量
	 * @param params
	 * @return
	 */
	public int getMyShoppingCount(Long usersId);
}